xen/arm: setup_dt_irq: don't enable the IRQ if the creation has failed
authorJulien Grall <julien.grall@linaro.org>
Fri, 24 Jan 2014 16:43:36 +0000 (16:43 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 12 Mar 2014 13:48:33 +0000 (13:48 +0000)
commit2cf484cee084be71b1f63e718d76af7555a6ab14
treea66a79d7ed60fe7e74cec263cf45a07a1b28fefd
parentd600fcea4995d3c842c1f11831dc54f1c58d4dd9
xen/arm: setup_dt_irq: don't enable the IRQ if the creation has failed

For now __setup_dt_irq can only fail if the action is already set. If in the
future, the function is updated we don't want to enable the IRQ.

Assuming the function can fail with action = NULL, when Xen will receive the
IRQ it will segfault because do_IRQ doesn't check if action is NULL.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/gic.c